package com.hx.resource.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hx.common.annotation.Excel;
import com.hx.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 接收文件分享对象 res_file_accept_share
 * 
 * @author mohao
 * @date 2023-05-19
 */
public class FileAcceptShare extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 接收的用户 */
    @Excel(name = "接收的用户")
    private Long userId;

    /** 接收的用户 */
    @Excel(name = "接收的用户name")
    private String userName;

    /** 文件编号 */
    @Excel(name = "文件编号")
    private Long fileId;

    /** 接收的文件 */
    @Excel(name = "接收的文件name")
    private String fileName;

    /** 接收时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "接收时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date receptionTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setFileId(Long fileId) 
    {
        this.fileId = fileId;
    }

    public Long getFileId() 
    {
        return fileId;
    }
    public void setReceptionTime(Date receptionTime) 
    {
        this.receptionTime = receptionTime;
    }

    public Date getReceptionTime() 
    {
        return receptionTime;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("fileId", getFileId())
            .append("receptionTime", getReceptionTime())
            .append("userName",getUserName())
            .append("fileName",getFileName())
            .toString();
    }
}
